//
//  Mind.h
//  iDev iPad Proto 2
//
//  Created by Matthew Canoy on 10/29/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <OpenGLES/EAGL.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#import "Vector.h"
#import <CoreFoundation/CFDate.h>

@interface Tap : NSObject
{
	CGPoint m_TapLocation;
}

@property CGPoint tapLocation;

@end


@interface Mind : NSObject
{
	@public
	GLfloat spriteVertices[8];
	
	//Stored Vectors of Data
	Vector* m_vSounds;
	Vector* m_vTextures;
	Vector* m_vParticleEmitters;
	Vector* m_vProfiles;
	Vector* m_vObjects;
	Vector* m_vStrings;
	
	//Timer
	CFTimeInterval	m_tiPreviousTime;
	CFTimeInterval	m_tiCurrentTime;
	
	Tap* m_Tap;
}

@property (nonatomic,retain) Vector* vSounds;
@property (nonatomic,retain) Vector* vTextures;
@property (nonatomic,retain) Vector* vParticleEmitters;
@property (nonatomic,retain) Vector* vProfiles;
@property (nonatomic,retain) Vector* vObjects;
@property (nonatomic,retain) Vector* vStrings;
@property (nonatomic,retain) Tap* tap;
@property CFTimeInterval tiPreviousTime;
@property CFTimeInterval tiCurrentTime;

+ (Mind*)mind;
- (void)InitialSetup;

- (void)NewTap:(CGPoint)location;
- (void)FlushTap;
- (float)DeltaTime;

//Temp Functions
- (GLfloat*)GetSpriteVertices;
- (void)setSpriteVerts:(CGPoint)point;


@end